home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7530 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: galaxy.ucr.edu!not-for-mail
  2. From: thp@cs.ucr.edu (Tom Payne)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Followup-To: comp.lang.ada,comp.lang.c,comp.lang.c++
  6. Date: 23 Feb 1996 20:12:10 GMT
  7. Organization: University of California, Riverside Department of Computer Science
  8. Message-ID: <4gl72q$mo9@galaxy.ucr.edu>
  9. References: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com>   <312515DF.7D3B@cmlj.demon.co.uk> <4gad29$ddp@druid.borland.com>
  10. NNTP-Posting-Host: corvette.ucr.edu
  11. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  12.  
  13. Pete Becker (pete@borland.com) wrote:
  14. : In article <312515DF.7D3B@cmlj.demon.co.uk>, chris@cmlj.demon.co.uk says...
  15. : >
  16. : >With regards to maintenance, there's many people out there who consider 
  17. : >C/C++ a Write only language.
  18. : How many of the people who say this have actually used C++ enough to 
  19. : understand it? I know it's popular today to dump on C++, but my experience has 
  20. : been that most of the people who produce one-liners like this simply don't 
  21. : know what they're talking about. If relying on that sort of ignorance is the 
  22. [...]
  23.  
  24.  
  25. Let's not blame the victim!  It is hardly "ignorance" or lack of
  26. familiarity that leads programmers to conclude that C/C++ is difficult
  27. to read and to express that judgement in the hyperbole, "write-only
  28. language."
  29.  
  30. C++ has been amazingly successful in achieving its design goals, thus
  31. assuring continued C/C++ dominance in the market.  As with the 80386
  32. extention to the 80286 instruction set, however, the resulting
  33. language is far from elegant.  We are talking about a language whose
  34. syntax is so convoluted that, Dan Saks devoted over a hundred column
  35. inches of the January issue of C/C++ Users Journal to telling
  36. professional C/C++ programmers how to parse declarations.  In the same
  37. issue, Pete Becker devoted space to explaining the meaning of
  38. sizeof(Sample&), which reads, "the number of bytes in the object
  39. representation for the type reference-to-Sample."  That value turns
  40. out to be (get this!) the number of bytes used to encode objects of
  41. type Sample, regardless of the number of bytes used to encode
  42. references --- a design decision so obscure and irregular that even
  43. the authors of the April Draft of the C++ standard missed it.
  44.  
  45. Tom Payne (thp@cs.ucr.edu)
  46.  
  47. P.S. My students say that C is an in-joke that everyone now knows,
  48. while C++ is a shaggy dog whose punch line is STL.
  49.